package com.wonders.hs.pd.mm.web;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by banglong on 2017/1/11.
 */
public class Pattern {
  @Test
  public void test() {
//        java.util.regex.Pattern pattern = java.util.regex.Pattern.compile("[0-9]+.?[0-9]+");
//        if (pattern.matcher("123*1").matches()) {
//            System.out.println("longfei");
//        } else {
//            System.out.println("banglong");
//        }
    List<Artists> artistsList = new ArrayList<>();
    Artists artists = new Artists();
    artists.setName("banglong");
    artistsList.add(artists);
    long count = artistsList.stream()
            .filter(item -> item.getName() != null)
            .count();
    System.out.print(count);
  }
}
